// components/profileHead/profileHead.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    avatar: {type: String},
    name: {type: String},
    klass: {type: String},
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onPreview() {
      wx.previewImage({
        current: this.data.avatar,
        urls: [this.data.avatar],
      })
    },
  }
})
